import { RouteRecordRaw } from 'vue-router'
const Layout = () => import('@/layout/index.vue')

const routes: Array<RouteRecordRaw> = [
  {
    path: '/index',
    component: Layout,
    name: 'index',
    meta: {
      title: 'index',
    },
    children: [
      {
        path: '/index',
        name: 'index',
        component: () => import('@/views/index/index.vue'),
        meta: {
          title: '首页',
          affix: true,
        },
      },
    ],
  },
]

export default routes
